//
// Created by denglibin on 2021/8/11.
//

#ifndef WXWIDGETSSTUDY_MYTEXTCTRL_H
#define WXWIDGETSSTUDY_MYTEXTCTRL_H
#include "wx/wx.h"

/**
 * 自定义文本输入框
 */
class MyTextCtrl : public wxTextCtrl{
public:
    MyTextCtrl(wxWindow *parent,
               wxWindowID id,
               const wxPoint& pos = wxDefaultPosition,
               const wxSize& size = wxDefaultSize);

    /**
     * 事件处理
     * @param event
     */
    void OnChar(wxKeyEvent& event);
private:
    DECLARE_EVENT_TABLE();
};


#endif //WXWIDGETSSTUDY_MYTEXTCTRL_H
